<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <link rel="icon" href="favicon.ico">
  <link href="./font/iconfont.css" rel="stylesheet">
  <script src="./wasm/wasm_exec.js"></script>
  <script>
    const go = new Go();
    WebAssembly.instantiateStreaming(fetch("./wasm/utils.wasm"), go.importObject).then((result) => {
      go.run(result.instance);
    });
  </script>

  <title></title>
</head>

<body>
  <noscript>
    <strong>We're sorry but wy doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
  </noscript>
  <div id="loading-layer">
    <div class="loading-border">
      <div class="loading-cover">
        <div class="loading-c"></div>
        <div class="loading-c"></div>
        <div class="loading-c"></div>
        <div class="loading-c"></div>
        <div class="loading-c"></div>
        <div class="loading-c"></div>
        <div class="loading-c"></div>
      </div>
    </div>
  </div>
  <div id="app"></div>
</body>

</html>

<style>
  #loading-layer {
    position: fixed;
    height: 100%;
    width: 100%;
    background-color: #5a6b92;
    left: 0;
    top: 0;
    transition: ease-in-out 0.3s;
  }

  .loading-border {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 174px;
    height: 174px;
    border: 2px solid #ebedf130;
    border-radius: 100%;
    transform: translate(-50%, -50%);
  }

  .loading-border::before {
    content: "";
    position: absolute;
    width: 174px;
    height: 174px;
    border: 2px solid #fff;
    border-radius: 100%;
    box-sizing: border-box;
    clip-path: inset(0px 135px 135px 0px);
    top: -2px;
    left: -2px;
    animation: rotateSmall 2s linear infinite;
    z-index: 2;
  }

  .loading-border::after {
    content: "";
    position: absolute;
    width: 174px;
    height: 174px;
    border: 2px solid #90d1d9;
    border-radius: 100%;
    box-sizing: border-box;
    clip-path: inset(0px 30px 30px 0px);
    top: -2px;
    left: -2px;
    animation: rotateLarge 1s linear infinite;
  }

  .loading-cover {
    position: relative;
    border-radius: 100%;
    padding: 5%;
    top: 30px;
    left: 35px;
  }

  .loading-c {
    position: absolute;
    width: 40px;
    height: 23px;
    background-color: #fff;
    transform: scale(1.02);
    transform-origin: center;
  }

  .loading-c::before {
    content: "";
    position: absolute;
    top: -11.5px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 11.5px solid #fff;
  }

  .loading-c::after {
    content: "";
    position: absolute;
    top: 23px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 11.5px solid #fff;
  }

  .loading-c:nth-child(1) {
    animation: animateC 3s infinite;
  }

  .loading-c:nth-child(2) {
    left: 53px;
    animation: animateC 3s 0.2s infinite;
  }

  .loading-c:nth-child(3) {
    left: -13px;
    top: 46px;
    animation: animateC 3s 1s infinite;
  }

  .loading-c:nth-child(4) {
    left: 31px;
    top: 46px;
    animation: animateC 3s 1.2s infinite;
  }

  .loading-c:nth-child(5) {
    left: 75px;
    top: 46px;
    animation: animateC 3s 0.4s infinite;
  }

  .loading-c:nth-child(6) {
    top: 84px;
    animation: animateC 3s 0.8s infinite;
  }

  .loading-c:nth-child(7) {
    left: 53px;
    top: 84px;
    animation: animateC 3s 0.6s infinite;
  }


  @keyframes animateC {
    0% {
      transform: scale(1.02);
    }

    20%,
    50% {
      transform: scale(0.6);
      opacity: 0;
    }

    65% {
      transform: scale(1.02);
      opacity: 0.8;
    }
  }

  @keyframes rotateLarge {
    0% {
      clip-path: inset(0px 30px 30px 0px);
    }

    50% {
      clip-path: inset(0px 150px 150px 0px);
    }

    100% {
      transform: rotate(1turn);
      clip-path: inset(0px 30px 30px 0px);
    }
  }

  @keyframes rotateSmall {
    100% {
      transform: rotate(1turn);
    }
  }

</style>
